@(subscriptions: List[models.domain.ContractItem])

@import helper._ 
 
@main("Διαχείριση Συνδρομών") {

<legend>Ενεργές Συνδρομές</legend>

<fieldset>	
	<a  href="@routes.Subscriptions.add()" class="btn btn-success">Προσθήκη</a>
	<table class="table table-striped">
    <thead>
      <tr>
        <th>Type</th>
        <th>Unit</th>
        <th>Amount</th>
        <th>Action</th>
      </tr>
    </thead>
    <tbody>
    @for(subscription <- subscriptions) {
      <tr>
      	<td>@subscription.getItemType()</td>
        <td>@subscription.getQuantity()</td>
        <td>@subscription.getAmount()</td>
		<td class="crud-actions">
			<a href="@routes.Subscriptions.remove(subscription.getId())" class="btn btn-danger">remove</a>
		</td>
      </tr>
      }

    </tbody>
	</table>
</fieldset>

}